</br>
<!-- Ini navigasi tambah produk -->
<ul class="nav nav-tabs">
  <li class="active"><a href="<?php echo site_url(); ?>/admin/produk/">Daftar Produk</a></li>
  <li><a href="<?php echo site_url(); ?>/admin/tambah_produk/">Tambah Produk</a></li>
</ul>

<!-- Ini menu konten navigasi -->
<div class="tab-content">
<!-- Ini tab conten navigasi panel home-->
	<br>
  <div class="alert alert-info">
    <a class="close" data-dismiss="alert">x</a>
    <strong>Info </strong> Pada halaman ini Anda dapat menghapus dan edit Data Produk ..
  </div>
  <?php if($this->session->flashdata('info')) { ?>
    <div class="alert alert-info">  
        <a class="close" data-dismiss="alert">x</a>  
        <strong>Info! </strong><?php echo $this->session->flashdata('info'); ?>  
    </div>
  <?php } ?>
		<div class="table">
    <?php
    if(empty($hasil)){
        echo "Tidak ada data";
    }
    else{
    ?>
    <table class="table">
			<tr class="table table-bordered active">
				<td>No</td>
        <td>Nama Produk</td>
        <td>Gambar</td>
        <td>Deskripsi</td>
        <td>Kategori</td>
				<td align="center">Aksi</td>
			</tr>
      <?php
          $no = 1;
          foreach($hasil as $data) {
        ?>
			<tr>
      <tr class="table">
				<td><?php echo $no++ ;?></td>
				<td><?php echo $data->nama_barang;?></td>
				<td>
          <img  width="150px" src="<?php echo base_url(); ?>upload/banner/<?php echo $data->gambar; ?>" alt="">
        </td>
				<td><?php echo $data->deskripsi ;?></td>
        <td><?php echo $data->id_kategori;?></td>
				<td border="0" align="center">
					<a title="Edit Produk Produk" href="#"><i class="glyphicon glyphicon-pencil"></i> Edit</a> | 
					<a href="#" onClick="if(confirm('Anda yakin HAPUS data ini? ')){document.location=''}" title="Hapus Produk" >
					<i class="glyphicon glyphicon-trash"></i> Hapus</a>
				</td>
			</tr>
      <?php } ?>
		</table>
    <?php
        }
      ?>
</div>

